package com.qf.smsplatform.interfaces;

import com.qf.smsplatform.interfaces.stream.PreSendOutputStream;
import com.qf.smsplatform.interfaces.stream.PushSmsReportStream;
import com.qf.smsplatform.interfaces.stream.WebSmsReportStream;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * 作者：郝国栋
 * 项目名：IntelliJ IDEA
 * 时间:2020/8/25  20:31
 * 描述:
 */
@SpringBootApplication
@EnableEurekaClient
@EnableFeignClients
@EnableBinding({PreSendOutputStream.class, PushSmsReportStream.class, WebSmsReportStream.class})
public class InterfacesStarterApp {
    public static void main(String[] args) {
        SpringApplication.run(InterfacesStarterApp.class,args);
    }

    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }

}
